<?php

class Application_Form_Pagination extends Zend_Form
{

    public function init()
    {
       
        $pageNumber = new Zend_Form_Element_Text('pageNumber');
        $pageNumber->setLabel('Go to page')
        		->addValidator('Int')
                ->setRequired(true);
                  
        $goto = new Zend_Form_Element_Submit('Go');
        $goto->setLabel('Go');
                
        $this->addElements(array(
        				$pageNumber,
                        $goto
                        ));
                        
        $this->setElementDecorators(array('ViewHelper','Label'));
               
        $goto->setDecorators(array('ViewHelper'));
        
		$this->setDecorators(array(
				'FormElements',
				array('HtmlTag', array('tag' => 'div', 'class'=> 'goto-page', 'id'=>'style')),
				'Form'
				));
    }


}

